home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Sample Code / OS Utilities / EditTextCDev / README < prev   
Encoding:
Text File  |  1997-02-18  |  1.6 KB  |  43 lines  |  [TEXT/R*ch]

  1. Macintosh
  2. Sample Code Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6. #10:    EditCdev
  7.  
  8. Written by:    Mark Bennett and Dave Brubeck
  9.  
  10. Versions:            1.00                        August 1988
  11.                     1.10                        June 1992
  12.                     Compiled for CodeWarrior 11 February 1997
  13.  
  14. Components:                                
  15.                     EditCdev.c                August 1, 1988
  16.                     EditCdev.π.rsrc            June 12, 1992
  17.                     EditCdev.p                August 1, 1988
  18. _____________________________________________________________________________
  19.  
  20. EditCdev is a sample Control Panel device (cdev) that demonstrates 
  21. the use of the edit-related messages and how to implement an 
  22. editText item in a cdev.  It utilizes the new undo, cut, copy, 
  23. paste, and delete messages that are sent to cdevs in response to 
  24. user menu selections.
  25.  
  26. EditCdev is comprised of two editText items which can be edited 
  27. and selected with the mouse or the Tab key.
  28.  
  29. Changes in version 1.10
  30. _______________________
  31.  
  32. There is a problem with the dialog manager routines.  They don't check the
  33. length of what you are typing (or pasting) into a textEdit record.  You
  34. can easily type over the 32K textEdit limit, and overwrite various parts of
  35. memory.  To avoid this problem, a great deal of checking must be done
  36. whenever a character is typed or a paste is performed.  I arbitrarily chose
  37. the limit to be 50 characters, but any limit less that 32K may be used by
  38. changing the maxLength constant.
  39.  
  40. The new version also has two static text fields that always display the length
  41. of the text in the adjacent textEdit record.
  42.  
  43.